/* 基础样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.card-header {
    border-radius: 15px 15px 0 0 !important;
    font-weight: 600;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    padding: 1.2rem 1.5rem;
}

/* 表单样式 */
.form-control {
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.8);
}

.form-control:focus {
    border-color: #6a11cb;
    box-shadow: 0 0 0 0.2rem rgba(106,17,203,0.25);
    background: rgba(255,255,255,0.95);
}

.form-label {
    font-weight: 600;
    color: #555;
    margin-bottom: 0.5rem;
}

.form-text {
    font-size: 0.85rem;
    color: #6c757d;
}

.btn {
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    box-shadow: 0 4px 15px rgba(106,17,203,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106,17,203,0.4);
}

.btn-outline-secondary {
    border: 2px solid #e0e0e0;
    color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #d6d6d6;
}

/* 头像样式 */
.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* 文件上传区域 */
.upload-area {
    border: 2px dashed #6a11cb;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    margin: 20px 0;
    transition: all 0.3s ease;
    background: rgba(106,17,203,0.05);
    position: relative;
}

.upload-area::before {
    content: '\f093';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 3rem;
    color: #6a11cb;
    display: block;
    margin-bottom: 1rem;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #2575fc;
    background: rgba(37,117,252,0.1);
    transform: scale(1.02);
}

/* 文件列表样式 */
.file-item {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.7);
}

.file-item:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* 通知消息样式 */
.alert {
    border-radius: 12px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.alert-success {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #721c24;
}

.alert-info {
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    color: #0c5460;
}

/* 页脚样式 */
footer {
    background: linear-gradient(135deg, #4b6cb7 0%, #182848 100%);
    color: #fff;
    padding: 30px 0;
    margin-top: 50px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .card {
        margin-bottom: 20px;
    }
    
    .avatar {
        width: 80px;
        height: 80px;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(106,17,203,0.3);
    border-radius: 50%;
    border-top-color: #6a11cb;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 表格样式 */
.table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.8);
}

.table th {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border-top: none;
    font-weight: 600;
    padding: 15px;
}

.table td {
    padding: 15px;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(106,17,203,0.05);
}

/* 分页样式 */
.pagination .page-link {
    border-radius: 10px;
    margin: 0 5px;
    border: none;
    color: #6a11cb;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    box-shadow: 0 4px 10px rgba(106,17,203,0.3);
}

/* 文件预览样式 */
#preview-container {
    animation: fadeIn 0.5s ease-in-out;
}

#preview-content img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-height: 300px;
    object-fit: contain;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* 文件类型图标样式 */
.fa-file-image {
    color: #4CAF50;
}

.fa-file-alt {
    color: #2196F3;
}

.fa-file-pdf {
    color: #F44336;
}

.fa-file {
    color: #9E9E9E;
}

/* 表单复选框样式 */
.form-check-input:checked {
    background-color: #6a11cb;
    border-color: #6a11cb;
}

.form-check-input:focus {
    border-color: #6a11cb;
    box-shadow: 0 0 0 0.2rem rgba(106,17,203,0.25);
}

/* 按钮组样式 */
.btn-group .btn {
    margin: 0 2px;
    border-radius: 8px;
}

.btn-outline-primary {
    border-color: #6a11cb;
    color: #6a11cb;
}

.btn-outline-primary:hover {
    background-color: #6a11cb;
    border-color: #6a11cb;
}

.btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
}

/* 徽章样式 */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}